package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.VersionService;
import com.it.park.dao.VersionMapper;
import com.it.park.model.Version;

@Service("versionService")
public class VersionServiceImpl extends BaseServiceImpl<Version> implements VersionService{
	@Autowired
	private VersionMapper versionMapper;

	@Override
	public List<Version> selectAll() {
		return versionMapper.selectAll();
	}

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return versionMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(Version record) {
		return versionMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(Version record) {
		return versionMapper.insertSelective(record)==1;
	}

	@Override
	public Version selectByPrimaryKey(Integer id) {
		return versionMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(Version record) {
		return versionMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(Version record) {
		return false;
	}

	@Override
	public boolean updateByPrimaryKey(Version record) {
		return versionMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<Version> selectPagination(Map<String, Object> map) {
		return versionMapper.selectPagination(map);
	}

	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return versionMapper.selectTotal(map);
	}

	@Override
	public List<Version> selectPagination(Version t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectTotal(Version t) {
		// TODO Auto-generated method stub
		return null;
	}

}
